package editor;

import java.beans.*;

/**
 * <p>Titre : </p>
 * <p>Description : </p>
 * <p>Copyright : Copyright (c) 2003</p>
 * <p>Société : </p>
 * @author non attribué
 * @version 1.0
 */

public class EditorTrameBeanInfo extends SimpleBeanInfo {
    private Class beanClass = EditorTrame.class;
    private String iconColor16x16Filename = "EditorTrameC16.GIF";
    private String iconColor32x32Filename = "EditorTrameC32.GIF";
    private String iconMono16x16Filename = "EditorTrameC16.GIF";
    private String iconMono32x32Filename = "EditorTrameC32.GIF";

    public EditorTrameBeanInfo() {
    }
    public PropertyDescriptor[] getPropertyDescriptors() {
        try {
            PropertyDescriptor _trame = new PropertyDescriptor("trame", beanClass, "getTrame", "setTrame");
            PropertyDescriptor[] pds = new PropertyDescriptor[] {
	            _trame};
            return pds;
        }
        catch(IntrospectionException ex) {
            ex.printStackTrace();
            return null;
        }
    }
    public java.awt.Image getIcon(int iconKind) {
        switch (iconKind) {
            case BeanInfo.ICON_COLOR_16x16:
              return iconColor16x16Filename != null ? loadImage(iconColor16x16Filename) : null;
            case BeanInfo.ICON_COLOR_32x32:
              return iconColor32x32Filename != null ? loadImage(iconColor32x32Filename) : null;
            case BeanInfo.ICON_MONO_16x16:
              return iconMono16x16Filename != null ? loadImage(iconMono16x16Filename) : null;
            case BeanInfo.ICON_MONO_32x32:
              return iconMono32x32Filename != null ? loadImage(iconMono32x32Filename) : null;
        }
        return null;
    }
}